package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class ProcessSolAction extends Action
{
	public ProcessSolAction()
	{
        super();
    }
	
	public ActionForward execute(ActionMapping mapping, 
									ActionForm form, 
								HttpServletRequest request,
								HttpServletResponse response) 
										throws Exception 
	{
        //If user pressed 'Cancel' button,
        // return to home page
        if (isCancelled(request))
        {
            return mapping.findForward("home");
        }
        /**
         * Aqui vai o codigo!
         */
        
        System.out.println("Passei no processSolAction");
        // Forward to result page
        return mapping.findForward("success");
		
	}
	
}
